package com.example.service;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;

/**
 * @ClassName CacheService
 * @Description TODO
 * @Author: XMK
 * @Date: 2020/12/23 18:23
 * @Version: 1.0
 */
@Component
public class CacheService {

    @Cacheable(cacheNames = "testCache")
    public String testCache(String id) {
        System.out.println("进了java方法~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        return "tsetstetetstest";
    }

}
